<% content_for :head do-%>
<%= javascript_include_tag 'review' %>
<% end -%>
<div class="nav_item">
  <span class="img"></span>
<%= link_to '衣评吧',root_path,:class=>'link_02' %>&gt;
<%= l_c(@item) %> &gt;
  <span class="font_cyan">宝贝详情</span>
</div>
<div id="content">
  <div class="clearfix">
    <div class="article">
      <div class="indent">
        <div class="subjectall clearfix">
          <div id="mainpic">
          <%= link_to  image_tag(@item.mp310,:alt=>'点击看大图',:title=>'点击看大图'),@item.main_pic || "",:class => 'img thickbox' %>
          </div>
          <div class="subject clearfix">
            <h1 style="font-size: 18px;"><strong>转载之图片、文件，链接请不要盗链到本站</strong> </h1>
            <div class="info clearfix">
              <div class="info_class">
                <ul>
                  <li><span class="pl">品牌:</span><%= @item.brand_name %></li>
                  <li> <span class="pl">风格:</span><%= @item.cloth_type %></li>
                  <li><span class="pl">品牌:</span><%= @item.season %></li>
                  <li><span class="pl">风格:</span><%= @item.pic_design %></li>
                </ul>
              </div>
              <div class="info_star">
                <ul class="pl">
                  <li>总评分:<span class="<%='bigstar'+format_num(@item.global_rating) %>"></span></li>
                  <li>外&nbsp;&nbsp;&nbsp;&nbsp;观:<span class="<%='bigstar'+format_num(@item.impression_rating) %>"></span></li>
                  <li>质&nbsp;&nbsp;&nbsp;&nbsp;地:<span class="<%='bigstar'+format_num(@item.quality_rating) %>"></span></li>
                </ul>
              </div>
            </div>
            <div class="clear"></div>
            <div class="subject_comment clearfix"> 
              <span class="quo_left"></span>
            <% (@item.impressions || "暂无印象").split(',').each_with_index do |im,i| -%>
              <span class="font_color<%= i+1%6 == 0 ? 6 : i+1 %>"><%= im %></span>
            <% end -%>
<%#*font_color1..6 6个颜色循环%>
              <span class="quo_right"></span>
            </div>
          </div>
        </div>
        <div class="clearfix" id="interest_sect_level">
        
        <%= link_to "<span>想买</span>",new_interest_item_collections_path(:item_id=>@item.id,:interest=>"wish",:width=>500,:height=>100),:class=>"colbutt ll thickbox" %>
        <%= link_to "<span>买过</span>",new_interest_item_collections_path(:item_id=>@item.id,:interest=>"bought",:width=>500,:height=>100),:class=>"colbutt ll thickbox" %>
          <div class="ll" style="margin-top: 5px;">评价:
          <%= link_to "<span class='bigstar30'></span>",new_rating_item_collections_path(:item_id=>@item.id,:width=>550,:height=>350), :class=>"thickbox" %>
          </div>
          <div style="width: 280px; float: right;">
            <ul class="fleft ul_subject_menu  clearfix">
              <li><img src="/images/subject_collect1.png">&nbsp;<a class="link_02" href="#">分享</a></li>
              <li><img src="/images/subject_collect2.png">&nbsp;<a class="link_02" href="#">收藏</a></li>
              <li><img src="/images/subject_collect3.png">&nbsp;<a class="link_02" href="#">推荐</a></li>
            </ul>
            <span class="fright">
<%#= link_to "我来点评","javascript:void(0)",:class=>"button_redbig rr"%>
              <!--这个地方应该换成a标签，来链接猫点，button有时候会吧别的表单也提交了-->
              <input type="submit" value="我来点评" id="button" name="button" class="button_redbig rr">
            </span> </div>
        </div>
      </div>
      <!--搜索开始-->
      <div class="clear"></div>
      <div class="info_detail">
        <h2>详情</h2>
        <ul>
          <li>货号: BSLY310 </li>
          <li>袖长: 短袖 </li>
          <li>领子: 圆领 </li>
          <li>款式细节: 订珠装饰 </li>
          <li>风格: 韩版 </li>
          <li>图案: 动物 </li>
          <li>材质: 纯棉 </li>
          <li>颜色: 白色T恤</li>
          <li>尺码: M  L  XL </li>
          <li>季节: 夏季 </li>
          <li>细节图: 有细节图 </li>
          <li>价格区间: 121-200元 </li>
        </ul>
      </div>
      <!--爆料开始-->

      <ul class="tab_tag">
        <li class="select"><span>爆料</span></li>
        <li ><span>标签</span></li>
        <li ><span>潮讯</span></li>
      </ul>
      <div class="clear"></div>
      <div class="conner_greenbig_top"></div>
      <div>
        <div class="info_detail_tab tab0">
          <span class="font_color4">评论：</span>
        </div>
        <div class="info_detail_tab tab1">11</div>
        <div class="info_detail_tab tab2">22</div>
      </div>

      <div class="conner_greenbig_bottom"></div>
      <!--标签数量-->
      <div class="clearfix">
        <h2>标签(共<%= @tags.count %>个)</h2>
        <div>
        <% @tags.each do |tag| -%>
          <%= link_to tag.name,tag_path(:name=>tag.name)  %>(<%=tag.items.count%>)&nbsp;
        <% end -%>
        </div>
      </div>
      <!--图片开始-->
      <div class="detail_pic">
        <h2 class="clearfix"> <%= @item.name %> &nbsp;&nbsp;
          <span class="pl"> (<%= link_to "全部#{@item.pictures.count}张", item_photos_path(@item) %>)</span>
          <div class="more_blue"> &gt;&nbsp;
          <%= link_to "更多图片", item_photos_path(@item), :class=>"j a_show_login" %>
          </div>
        </h2>
        <ul class="detail_pic_img clearfix">
        <% @pictures.each do |p| -%>
          <!--图片信息 120*120 的-->
          <li> <a href="#"><img src="" /><%= image_tag p.id %></a> </li>
        <% end -%>
        </ul>
      </div>
      <div class="clear"></div>
      <!--评论开始-->
    <%= render :partial => 'comments' %>
      <!--评论结束-->
      <!--评论留言开始-->
    <%= render :partial => 'add_review' %>
      <!--评论留言结束-->
    </div>
    <!--右侧栏目开始-->
    <div class="aside">
      <div class="conner_gray_top"></div>
      <div class="hot_tags">
        <h2 class="">在哪儿购买</h2>
        <ul class="buy clearfix">
          <li><a href="#">淘宝(RMB 59.20)</a> </li>
          <li><a href="#">淘宝(RMB 59.20)</a> </li>
          <li><a href="#">淘宝(RMB 59.20)</a> </li>
          <li><a href="#">淘宝(RMB 59.20)</a> </li>
        </ul>
      </div>
      <div class="conner_gray_bottom"></div>
      <!--广告开始 -->
      <div class="ads_top_right"><img width="310" height="188" alt="广告图片" src="/images/icon/ads_top.jpg"></div>
      <!--广告结束-->
    <%= render :partial => "who_bought" %>
      <!--推荐开始-->
    <%= render :partial => "same_cat_items" %>
    </div>
    <div class="extra"> </div>
  </div>
</div>
